package com.cgy.springboot.service;

import com.cgy.springboot.domain.Product;
import com.cgy.springboot.mapper.ProductMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductService {
    @Autowired
    private ProductMapper productMapper;
    public List<Product> productAll() {
        return productMapper.productAll();
    }
}
